package com.yf.stat.modules.total.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yf.base.api.api.dto.PagingReqDTO;
import com.yf.stat.modules.total.dto.StatTotalUserDTO;
import com.yf.stat.modules.total.dto.request.StatTimeRangeReqDTO;
import com.yf.stat.modules.total.mapper.StatTotalUserMapper;
import com.yf.stat.modules.total.service.StatTotalUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* <p>
* 用户统计业务实现类
* </p>
*
* @author 聪明笨狗
* @since 2021-06-04 08:28
*/
@Service
public class StatTotalUserServiceImpl implements StatTotalUserService {

    @Autowired
    private StatTotalUserMapper mapper;

    @Override
    public IPage<StatTotalUserDTO> paging(PagingReqDTO<StatTimeRangeReqDTO> reqDTO) {

        //转换结果
        IPage<StatTotalUserDTO> pageData = mapper.paging(reqDTO.toPage(), reqDTO.getParams());
        return pageData;
     }
}
